//
//  TouchImageView.m
//  Travel_M_Travel
//
//  Created by APPLE10 on 15-4-3.
//  Copyright (c) 2015年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "TouchImageView.h"

@implementation TouchImageView

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/
- (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event
{
    //重写touchBegan,触摸开始的方法,让自定义的view有一个点击效果
    //点击的时候,让自己的target对象,执行action方法
    [(NSObject *)self.target performSelector:self.action withObject:self];
}

@end
